package cn.laixueit;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        /*程序是严谨的*/
        int[] xuehao = new int[3];
        String[] xingming = new String[3];

        /*
           写注释，
           写思路,
        */
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < xuehao.length; i++) {
            System.out.println("请输入学号:");
            xuehao[i] = scanner.nextInt();
            System.out.println("请输入姓名:");
            xingming[i] = scanner.next();
        }
        for (int i = 0; i < xuehao.length; i++) {
            System.out.println("学号:"+xuehao[i]);
            System.out.println("姓名:"+xingming[i]);
        }
    }
}
